package a12_SeqList.LoopQueue;

/**
 * @Author quan
 * @Description 测试类
 * @Date 2023/3/23 15:10
 */
public class LoopQueueTest {
    public static void main(String[] args) {
        LoopQueue<Integer> queue = new LoopQueue<>();
        //入队列
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        queue.offer(4);
        queue.offer(5);
        System.out.println(queue);
        //出队列
        System.out.println(queue.poll());
        System.out.println(queue.poll());
        //查看队首元素
        System.out.println(queue.peek());
    }
}
